//
//  NoDataDefaultView.m
//  Mdongying
//
//  Created by lixun on 14-8-18.
//  Copyright (c) 2014年 伟帅陈. All rights reserved.
//

#import "NoDataDefaultView.h"

@implementation NoDataDefaultView

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        
        self.backgroundColor = [UIColor whiteColor];
        UIImageView *imageView = [[UIImageView alloc]initWithFrame:CGRectMake((320-271)/2, 100, 271,164)];
        imageView.image = [AppUtility getLocalImage:@"nodata_default"];
        [self addSubview:imageView];
        [imageView release];
        
        UILabel *textLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, imageView.frame.origin.y+imageView.frame.size.height+10,320, 20)];
        textLabel.textAlignment = NSTextAlignmentCenter;
        textLabel.backgroundColor = [UIColor clearColor];
        textLabel.font = [UIFont systemFontOfSize:14];
        textLabel.textColor = RGBCOLOR(144.0, 144.0, 144.0);
        textLabel.text = @"暂无数据";
        [self addSubview:textLabel];
        [textLabel release];
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
